/*
 * @Author: yao
 * @Date: 2024-11-11 18:42:54
 * @LastEditTime: 2025-02-18 17:05:24
 * @LastEditors: yao
 * @Description:
 * @FilePath: \jdev-web-el\src\router\constant-routes.ts
 */
import BaseLayout from "@/Layouts/BaseLayout.vue";
const constantRoutes: any = [
  {
    path: "/",
    component: BaseLayout,
    meta: {type: 'page'},
    children: [
      {
        path: "/",
        name: "dashboard",
        title: "主页",
        meta: {type: 'page'},
        component: () => import("@/views/Dashboard/index.vue"),
      },
      {
        path: "/404",
        meta: {type: 'page'},
        name: "404",
        component: () => import("@/views/System/404.vue"),
      },
    ],
  },
  {
        meta: {type: 'page'},
    path: "/login",
    name: "login",
    component: () => import("@/Layouts/Login.vue"),
  },
  {
    meta: {type: 'page'},
    path: "/about",
    name: "about",
    // route level code-splitting
    // this generates a separate chunk (About.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () => import("@/views/System/About.vue"),
  },
  // {
  //   path: "/:pathMatch(.*)",
  //   component: () => import("@/views/System/404.vue"),
  // },
];

export default constantRoutes;
